﻿using System;
using System.Collections.Generic;
using System.Text;


// 无向图邻接表的顶点结点
public class VexNode<T>
{
    private GraphNode<T> data; // 图的顶点
    private AdjListNode<T> firstAdj; //邻接表的第一个结点

    public GraphNode<T> Data { get { return data; } set { data = value; } }
    public AdjListNode<T> FirstAdj { get { return firstAdj; } set { firstAdj = value; } }

    public VexNode()
    {
        data = null;
        firstAdj = null;
    }

    public VexNode(GraphNode<T> nd)
    {
        data = nd;
        firstAdj = null;
    }

    public VexNode(GraphNode<T> nd, AdjListNode<T> alNode)
    {
        data = nd;
        firstAdj = alNode;
    }
}
